<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>公司管理</title>
    <link rel="icon" href="favicon.ico" type="images/ico">
    <meta name="author" content="dc">
    <link rel="stylesheet" type="text/css" href="/css/materialdesignicons.min.css">
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css"/>
    <link rel="stylesheet" type="text/css" href="/css/animate.min.css">
    <link rel="stylesheet" type="text/css" href="/css/style.min.css">
    <link href="/js/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="/js/jquery-confirm/jquery-confirm.min.css"/>
    <!--固定table列-->
    <link href="/js/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.min.css" rel="stylesheet"/>
    <!--时间选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css"/>
    <!--日期选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datepicker/bootstrap-datepicker3.min.css"/>
    <!-- 多选下拉 -->
    <link rel="stylesheet" href="/css/bootstrap-select.css" type="text/css"/>
    <link rel="stylesheet" href="/css/skin.css"/>
    <link rel="stylesheet" href="/css/customerManager/user/myCustomerPool.css"/>

</head>
<body>
<div class="container-fluid customer-page">
    <div class="card">
        <div class="card-header">
            <h1>公司管理</h1>
        </div>
        <div class="card-body">
            <div class="row content-action">
                <div class="col-lg-11 col-md-11 col-sm-11 col-xs-12">
                    <div class="pull-right">
                        <div class="min-search pull-left">
                            <input class="form-control" type="text" placeholder="请输入公司名" id="companyName" name="companyName" autocomplete="off">
                            <button class="btn btn-primary" style="margin-right: 30px" type="button" onclick="searchCompanyList()" ><i class="mdi mdi-magnify"></i><span>搜索</span></button>
                        </div>
                    </div>
                </div>
                <div class="col-lg-1 col-md-1 col-sm-1 col-xs-12">
                    <div class="pull-right">
                        <div class="min-search pull-left">
                            <button style="margin-right: 20px;" type="button" class="btn btn-primary" onclick="addCompany()">新建</button>
                        </div>
                    </div>
                </div>
            </div>
            <table id="companyTable"></table>
        </div>
    </div>
</div>

<!-- 添加div -->
<div class="modal fade" tabindex="-1" role="dialog" id="addCompany" >
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <form>
                <div class="modal-body">
<!--                    <input type="hidden" id="taskId" name="taskId">-->
                    <div class="row">
                        <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
                            <label class="control-label label-required" for="companyNameAdd">公司名称</label>
                            <div class="form-content">
                                <input type="text" class="form-control" id="companyNameAdd" placeholder="请输入公司名称">
                            </div>
                        </div>
                        <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
                            <label class="control-label label-required" for="companyCode">公司代码</label>
                            <div class="form-content">
                                <input type="text" class="form-control" id="companyCode" placeholder="请输入公司代码">
                            </div>
                        </div>
                        <div>
                            <div class="col-lg-12 col-md-12 col-sm-6 col-xs-12" style="padding-top: 15px">
                                <label class="control-label label-required" >所在地区</label>
                                <div class="form-content row">
                                    <div class="col-xs-6">
                                        <select onchange="changeCity()" id="province" name="province" class="form-control" type="text" title="请选择"></select>
                                    </div>
                                    <div class="col-xs-6">
                                        <select id="city" name="city" class="form-control" type="text" title="请选择"></select>
                                    </div>
                                </div>
                            </div>
                         </div>
                    </div>
                </div>
                <div class="modal-footer" style="display: flex;justify-content: center;">&nbsp;&nbsp;&nbsp;
                    <button style="margin-right: 20px;" type="button" class="btn btn-primary" onclick="saveCompany()">保存</button>
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                </div>
            </form>
        </div>
    </div>
</div>
<!-- end -->
</body>
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/perfect-scrollbar.min.js"></script>
<!--标签插件-->
<script src="/js/jquery-tags-input/jquery.tagsinput.min.js"></script>
<script type="text/javascript" src="/js/main.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table-zh-CN.min.js"></script>
<script type="text/javascript" src="/js/popper.min.js"></script>
<script type="text/javascript" src="/js/jquery.cookie.min.js"></script>
<!--时间选择插件-->
<script src="/js/bootstrap-datetimepicker/moment.min.js"></script>
<script src="/js/jquery-confirm/jquery-confirm.min.js"></script>
<script src="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="/js/bootstrap-datetimepicker/locale/zh-cn.js"></script>
<!--日期选择插件-->
<script src="/js/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script src="/js/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<!-- 多选框下拉 -->
<script type="text/javascript" src="/js/bootstrap-select.js"></script>
<script type="text/javascript" src="/js/bootstrap.lyear.dropdowntree.min.js"></script>
<!--table固定列-->
<script type="text/javascript" src="/js/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js"></script>
<!-- 图表 -->
<script type="text/javascript" src="/js/echarts.min.js"></script>
<!-- 子页面公用js -->
<script src="/js/crm/common/pageCommon.js"></script>
<script src="/js/crm/user/company.js"></script>
<!-- 省市js-->
<script src="/js/crm/common/city.js"></script>
</html>